﻿<?xml version="1.0" encoding="utf-8" ?>
<objects xmlns="http://www.springframework.net"
         xmlns:db="http://www.springframework.net/database">
    <description>scheduling配置</description>
    <object name="exampleJob" type="Spring.Scheduling.Quartz.JobDetailObject, Spring.Scheduling.Quartz">
        <property name="JobType" value="QzgfFrame.Mvc3.CommonSupport.Scheduling.ExampleJob" />
        <!-- We can inject values throgh JobDataMap -->
        <property name="JobDataAsMap">
            <dictionary>
                <entry key="UserName" value="Alexandre" />
            </dictionary>
        </property>
    </object>
    
    <object id="cronTrigger" type="Spring.Scheduling.Quartz.CronTriggerObject, Spring.Scheduling.Quartz">
        <property name="jobDetail" ref="exampleJob" />
        <!-- 每20秒执行一次 -->
        <property name="cronExpressionString" value="0/20 * * * * ?" />
    </object>
    
    <!--
    暂时不启用定时器处理
    -->
    <object type="Spring.Scheduling.Quartz.SchedulerFactoryObject, Spring.Scheduling.Quartz">
        <property name="triggers">
            <list>
                <ref object="cronTrigger" />
            </list>
        </property>
    </object>   

</objects>